<?php

namespace App\Http\Controllers;

use App\Question;
use Illuminate\Http\Request;
use App\User;


use App\Http\Requests;
use App\Http\Controllers\Controller;

class TestController extends Controller
{
    public function index()
    {
        $res = Question::all();
        $data = [];
        foreach($res as $v){
        $data[] = $v;
            
        }
        dd($data);
    }

    public function test()
    {
        $res = User::find(1)->detail->first();
        dd($res->nickname);
    }
}
